package com.xnyzc.lhy.mis.mapper.punishment;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xnyzc.lhy.mis.entity.param.punishment.DriverPenaltyTmpResult;
import com.xnyzc.lhy.mis.entity.punishment.OaDUserPenalty;
import com.xnyzc.lhy.mis.entity.punishment.OaDUserPenaltyInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 司机处罚表  Mapper 接口  oa_sys_area
 * </p>
 *
 * @author cuixiaojian
 * @since 2019-10-27
 */
public interface OaDUserPenaltyMapper extends BaseMapper<OaDUserPenalty> {
    List<OaDUserPenaltyInfo> queryDriverPenaltyList(IPage iPage,
                                                    @Param("driverName") String driverName,
                                                    @Param("driverPhone") String driverPhone,
                                                    @Param("adCode") String adCode,
                                                    @Param("isPenalty") Integer isPenalty);

    /**
     * 获取司机处罚模板和司机违规模板id
     * @return
     */
    DriverPenaltyTmpResult queryDriverPenaltyTmp();
}
